Refactor FlavorAssigner#3536
Conversation
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
8e5bdb9 to
e92da7a
Compare
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 3e562b8b4122a6b4751d3fd2e33429fa2c28ae3b |
thanks for the review! |
| } | ||
| status.append(msg) | ||
|
|
||
| status.append(fmt.Sprintf("insufficient unused quota for %s in flavor %s, %s more needed", |
There was a problem hiding this comment.
Do we want to set this message even if val <= rQuota.Nominal?
There was a problem hiding this comment.
We did this (a similar message) before, and I think the message is still relevant/accurate - other quota is being used
| Name: "main", | ||
| Status: &Status{ | ||
| reasons: []string{"insufficient unused quota in cohort for cpu in flavor one, 11 more needed"}, | ||
| reasons: []string{"insufficient quota for cpu in flavor one, request > maximum capacity (12 > 11)"}, |
There was a problem hiding this comment.
This is actually showing the message is fixed
mimowo
left a comment
There was a problem hiding this comment.
/lgtm
/approve
We will be cherry-picking this one probably too.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gabesaba, mimowo The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/release-note-edit proposal |
|
/kind bug |
|
/cherry-pick release-0.9 |
|
@mimowo: new pull request created: #3549 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/cherry-pick release-0.8 |
|
@mimowo: #3536 failed to apply on top of branch "release-0.8": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Simplifies FlavorAssigner in preparation for #3405
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?